package com.kingyea.app.market.supplier.dao;

import com.kingyea.app.market.supplier.bean.Supplier;
import com.kingyea.app.market.supplier.bean.SupplierVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description SupplierMapper
 * @date Created in 2018-02-09 17:47:42
 */
public interface SupplierMapper {

    /**
     * 通过ID获取对象
     */
    Supplier getById(@Param("supplierCode") Integer supplierCode);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("supplierCode") Integer supplierCode);

    /**
     * 更新对象
     */
    void update(Supplier obj);

    /**
     * 保存对象
     */
    void save(Map<String, Object> obj);

    /**
     * 查询列表
     */
    List<Supplier> list(Map<String, Object> obj);

    List<SupplierVo> getListBySupplier(Map<String, Object> obj);

}
